<?php
/**
 * @Name: admin-token.php
 * @Author: yashuai 1762910894@qq.com
 * @desc: 需要登录后访问
 */

use Illuminate\Support\Facades\Route;

// 角色 权限
Route::namespace('Rbac')->group(function () {
    Route::get('/node', 'NodeController@index');
    Route::post('/node/create', 'NodeController@create');
    Route::post('/node/update', 'NodeController@update');
    Route::post('/node/status', 'NodeController@status');

    Route::get('/users', 'UsersController@index');
    Route::get('/users/info', 'UsersController@info');
    Route::get('/users/menu-node', 'UsersController@menuNode');
    Route::post('/users/create', 'UsersController@create');
    Route::post('/users/update', 'UsersController@update');
    Route::post('/users/status', 'UsersController@status');
    Route::post('/users/reset-password', 'UsersController@resetPassword');
    Route::post('/users/reset-my-password', 'UsersController@resetMyPassword');

    Route::get('/role', 'RoleController@index');
    Route::get('/role/select', 'RoleController@select');
    Route::post('/role/create', 'RoleController@create');
    Route::post('/role/update', 'RoleController@update');
    Route::post('/role/status', 'RoleController@status');
    Route::post('/role/node', 'RoleController@node');
});

Route::get('/home/keep', 'IndexController@keep');
